namespace ASPNET.StarterKit.IssueTracker
{
    using System;
    using System.Diagnostics;
    using System.Web.Security;
    using System.Web.UI;

    public class LogOff : Page
    {
        private object designerPlaceholderDeclaration;

        public LogOff()
        {
            base.Load += new EventHandler(this.Page_Load);
            base.Init += new EventHandler(this.Page_Init);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
        }

        private void Page_Init(object sender, EventArgs e)
        {
            this.InitializeComponent();
        }

        private void Page_Load(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            this.Response.Cookies["userroles"].Value = "";
            this.Response.Cookies["userroles"].Path = "/";
            DateTime _Vb_t_date_0 = new DateTime(0x7cf, 10, 12);
            this.Response.Cookies["userroles"].Expires = _Vb_t_date_0;
            this.Context.User = null;
            this.Response.Redirect("~/Issues/IssueList.aspx");
        }
    }
}

